#include <tcSound/tc_sound.h>
#include <tcResource/tc_resource.h>
#include <CocosDenshion/include/SimpleAudioEngine.h>

using namespace CocosDenshion;

void tc_sound_play( tcType sound )
{
	char path[128];
	tc_resource_get_path(sound, path);
	SimpleAudioEngine::sharedEngine()->playEffect(path);
}

void tc_sound_prepare( tcType sound )
{
	char path[128];
	tc_resource_get_path(sound, path);
	SimpleAudioEngine::sharedEngine()->preloadEffect(path);
}

void tc_sound_init()
{

}

void tc_sound_exit()
{
	SimpleAudioEngine::end();
}

void tc_sound_set_effect_volumn( float volumn )
{
	SimpleAudioEngine::sharedEngine()->setEffectsVolume(volumn);
}
